package com.aries.remoteplusserver.core;

import com.jinvoke.JInvoke;
import com.jinvoke.win32.User32;

public class MediaHandler {

	public MediaHandler()
	{
		JInvoke.initialize();
	}
	
	public void mediaHandler(Object[] args)
	{
		int keyCode = Integer.parseInt(args[0].toString(), 10);
		User32.keybd_event((byte) ((keyCode+255)%255), (byte)0, 0, 0);
	}
}
